#ifndef WIDGET_H
#define WIDGET_H

#include<iostream>
#include <QWidget>
#include<QDebug>
#include <QResizeEvent>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

//signals:
//        void mysignal();
//        void mysignalparams(int value);
//private slots:
//        void myslot();
//        void myslotparams(int value);
public:
    void enterEvent(QEvent *event)override;
    void leaveEvent(QEvent *event)override;
    void wheelEvent(QWheelEvent *event)override;
    void closeEvent(QCloseEvent *event)override;
    void resizeEvent(QResizeEvent *event)override;

private slots:
    void on_btnRead_clicked();

    void on_btnWrite_clicked();

    void on_btnstreamRead_clicked();

    void on_btnstreamWrite_clicked();

    void on_btnQFileDialog_clicked();

    void on_btnSe_clicked();

    void on_btnSave_clicked();

    void oncurrentIndexChanged(int index);
private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
